<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>FIRST LEGO League na Slovensku - FLL na Slovensku</title>
<base href="http://www.fll.sk/" />
<link href="http://kempelen.ii.fmph.uniba.sk/letnaliga/styles.css" rel="stylesheet" type="text/css" />
</head>
    <body>
        <h3>Zadania</h3>
        <ul>
        <?php
			$today = date("Y-m-d H:i:s");
			$cislo_zadania = 0;
            foreach ($missions as $obj) {
				if (($obj->end > '00-00-00 00:00:00') && ($obj->end > $obj->start) && ($obj->start <= $today)) {
					
					$cislo_zadania = $cislo_zadania + 1;
					?>
					<li><a href="<?php echo site_url("projekt/show_mission/{$obj->id}"); ?>"> <?php echo $cislo_zadania; echo '. '; echo $obj->name; ?> </a></li>
					<?php
				}						
		}
		
		echo '<br/><br/><center>'.$tabulka.'</center>';
        ?>
        </ul>
    </body>
</html>